/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Damian
 */
@Embeddable
public class LocalImagesPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_LOCAL_IMAGES")
    private int idLocalImages;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_LOCAL")
    private int idLocal;

    public LocalImagesPK() {
    }

    public LocalImagesPK(int idLocalImages, int idLocal) {
        this.idLocalImages = idLocalImages;
        this.idLocal = idLocal;
    }

    public int getIdLocalImages() {
        return idLocalImages;
    }

    public void setIdLocalImages(int idLocalImages) {
        this.idLocalImages = idLocalImages;
    }

    public int getIdLocal() {
        return idLocal;
    }

    public void setIdLocal(int idLocal) {
        this.idLocal = idLocal;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idLocalImages;
        hash += (int) idLocal;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof LocalImagesPK)) {
            return false;
        }
        LocalImagesPK other = (LocalImagesPK) object;
        if (this.idLocalImages != other.idLocalImages) {
            return false;
        }
        if (this.idLocal != other.idLocal) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entidades.LocalImagesPK[ idLocalImages=" + idLocalImages + ", idLocal=" + idLocal + " ]";
    }
    
}
